package org.jeecg.modules.basic.worker.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.basic.worker.entity.LwgyMaterialWorker;
import org.jeecg.modules.basic.worker.entity.LwgyMaterialWorkerUsed;

import org.jeecg.modules.basic.worker.mapper.LwgyMaterialWorkerMapper;
import org.jeecg.modules.basic.worker.mapper.LwgyMaterialWorkerUsedMapper;
import org.jeecg.modules.basic.worker.service.ILwgyMaterialWorkerService;
import org.jeecg.modules.basic.worker.service.ILwgyMaterialWorkerUsedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 物料管理申请表
 * @Author: jeecg-boot
 * @Date:   2021-04-06
 * @Version: V1.0
 */
@Service
public class LwgyMaterialWorkerUsedServiceImpl extends ServiceImpl<LwgyMaterialWorkerUsedMapper, LwgyMaterialWorkerUsed> implements ILwgyMaterialWorkerUsedService {
    @Resource
    private LwgyMaterialWorkerUsedMapper lwgyMaterialWorkerUsedMapper;



    @Override
    public IPage<LwgyMaterialWorkerUsed> queryPageCustomer(Page<LwgyMaterialWorkerUsed> page, QueryWrapper<LwgyMaterialWorkerUsed> queryWrapper) {
       /* queryWrapper.isNotNull("mp.id");
        queryWrapper.orderByDesc("writerTime");*/
        return page.setRecords(lwgyMaterialWorkerUsedMapper.queryPageListCustom(page,queryWrapper));
    }

    @Override
    public IPage<LwgyMaterialWorkerUsed> queryPageHistoryCustomer(Page<LwgyMaterialWorkerUsed> page, QueryWrapper<LwgyMaterialWorkerUsed> queryWrapper, String id) {
        return page.setRecords(lwgyMaterialWorkerUsedMapper.queryPageListHistoryCustom(page,queryWrapper,id));

    }




}
